<html>
    <head>
        <meta charset="utf-8" />
        <title>HTML5 File Drag and Drop Upload with jQuery and PHP | Tutorialzine Demo</title>

        <!-- Our CSS stylesheet file -->
        <?
        ?>
        <script>
            jQuery(function($) {
                $('.dropfile').dropfile();
            });
        </script>
    </head>
    <body>

        <header>
            <h1>Exemple Drag and drop</h1>
        </header>
        <div class="content">

            <?php foreach (glob('img/' . $user . '/*') as $file): ?>
                <div class="dropfile" data-value="<?php echo end(explode('/', $file)); ?>">
                    <img src="<?php echo 'http://localhost/Capt_art/'.$file; ?>"/>
                </div>
            <?php endforeach; ?>

            <div class="dropfile"></div>
        </ul>
    </div>
    <!-- Including The jQuery Library -->

</body>
</html>


